function [ pixelsPerCmSec ] = getAxisScaleGUI ( dicomImg, ocrResults, xAxisBottom, xAxisEndPoint, inputAxes, instructionText )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here

[ axisOCRIndeces, axisValueBounds ] = extractAxisValuePosition( ocrResults, ... 
                                      xAxisBottom, xAxisEndPoint );
                                  
if isempty(axisOCRIndeces)
    
    [ axisHashYPosition, axisLabel ] = getAxisManuallyGUI( dicomImg, inputAxes, instructionText );
    
else
    
    [ axisHashYPosition ] = getAxisHashPosition( ocrResults, axisValueBounds );

    [ axisLabel, axisHashYPosition ] = getAxisHashLabelGUI( ocrResults, axisOCRIndeces, axisHashYPosition, dicomImg, inputAxes, instructionText );

end


[ pixelsPerCmSec ] = getPixelsPerCmSec( axisLabel, axisHashYPosition, xAxisBottom);
                                  
   
end

